<template>
	<view class="order-goods-item">
		<view class="order-goods-item-goods">
			<image class="order-goods-item-img" src="../../static/images/tem/gloos.jpg"></image>
			<view class="order-goods-item-center">
				<view class="order-goods-item-center-h1 uni-font-size-base">iphone手机iphone手机iphone手机iphone手机iphone手机iphone手机</view>
				<view class="order-goods-item-center-spec uni-text-color-grey uni-font-size-base">红色-43</view>
			</view>
			<view class="order-goods-item-right">
				<view class="uni-font-size-lg uni-text-color-active">￥30.22</view>
				<view class="uni-font-size-sm uni-text-color-grey">x10</view>
			</view>
		</view>
		<slot></slot>
	</view>
</template>

<script>
	export default {
		name: 'OrderGoodsItem',
		title: '订单-商品',
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss" scoped>
	.order-goods-item{
		width: 100%;
		background: $uni-bg-color;
		border-radius: 10upx;
		display: flex;
		flex-direction: column;
		.order-goods-item-goods{
			width: 100%;
			padding: 20upx 10upx;
			box-sizing: border-box;
			display: flex;
			.order-goods-item-img{
				width: 200upx;
				height: 200upx;
			}
			.order-goods-item-center{
				width: 100%;
				padding: 0 20upx;
				box-sizing: border-box;
				flex: 1;
				.order-goods-item-center-h1{
					width: 100%;
					overflow : hidden;
					text-overflow: ellipsis;
					display: -webkit-box;
					-webkit-line-clamp: 2;
					-webkit-box-orient: vertical;
				}
				.order-goods-item-center-spec{
					margin-top: 20upx;
				}
			}
			.order-goods-item-right{
				display: flex;
				flex-direction: column;
				align-items: flex-end;
			}
		}
	}
</style>
